#define _CRT_SECURE_NO_WARNINGS 1


int Add(int num1, int num2) {
    // write code here
    while (num2 != 0)
    {
        int tmp = num1 ^ num2;
        num2 = (num1 & num2) << 1;
        num1 = tmp;
    }
    return num1;
}